import http from '../../utils/http';

const getTeacher = (data: any) => {
  return http({
    url: '/getTeacher',
    method: 'post',
    data,
  });
};

const getClassId = () => {
  return http({
    url: '/getClassId',
    method: 'post',
  });
};

const addTeacher = (data: any) => {
  return http({
    url: '/addTeacher',
    method: 'post',
    data,
  });
};

const delTeacher = (data: any) => {
  return http({
    url: '/delTeacher',
    method: 'post',
    data,
  });
};

const editTeacher = (data: any) => {
  return http({
    url: '/editTeacher',
    method: 'post',
    data,
  });
};
export { getTeacher, addTeacher, getClassId, delTeacher, editTeacher };
